Solve by Completing square method